package com.tdkj.model.enterprisezone;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import com.tdkj.model.base.BaseEntity;
import com.tdkj.model.decorate.BeanStyle;
/**
 * KyFriendlylink entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "ezone_decorate")
public class BeanEnterpriseZoneDecorate extends BaseEntity{
	
	//自定义背景
	private BeanEZoneDecorateBgImg bgImg ;
	//布局 1_3 3_1 1_4 4_1 2_3 3_2 2_2 1_3_1
	private String layout = "1_3";
	//模块布局  moduleid , moduleid | moduleid , moduleid|moduleid , moduleid
	//默认eNotice(企业公告) , 产品分类,搜索,最近访客,企业视频,企业相册,友情链接,企业介绍,企业信息,产品介绍,留言版
	private String modulesLayout = "eNotice,productClass,search,lastVistor,eVideo,ePhoto,friendsLink|eIntro,eInfo,productIntro,comment";
	//风格
	//private BeanStyle style = new BeanStyle("royalblue");
	private String style = "royalblue";
	//店标
	private BeanEnterpriseZoneDecorateContent storeLogo ;
	//分类背景
	private BeanEnterpriseZoneDecorateContent classBackground ;	
	//挂件
	private BeanEnterpriseZoneDecorateContent pendants ;
	//公告
	private BeanEnterpriseZoneDecorateContent notice ;
	//记数器
	//
	//导航
	private BeanEnterpriseZoneDecorateContent navigate ;
	
	@OneToOne(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
	public BeanEZoneDecorateBgImg getBgImg() {
		return bgImg;
	}

	public void setBgImg(BeanEZoneDecorateBgImg bgImg) {
		this.bgImg = bgImg;
	}

	public String getLayout() {
		return layout;
	}
	
	public void setLayout(String layout) {
		this.layout = layout;
	}
	
	public String getStyle() {
		return style;
	}

	public void setStyle(String style) {
		this.style = style;
	}

	public BeanEnterpriseZoneDecorateContent getClassBackground() {
		return classBackground;
	}
	
	public void setClassBackground(
			BeanEnterpriseZoneDecorateContent classBackground) {
		this.classBackground = classBackground;
	}
	public BeanEnterpriseZoneDecorateContent getPendants() {
		return pendants;
	}
	
	public void setPendants(BeanEnterpriseZoneDecorateContent pendants) {
		this.pendants = pendants;
	}
	
	public BeanEnterpriseZoneDecorateContent getNotice() {
		return notice;
	}
	
	public void setNotice(BeanEnterpriseZoneDecorateContent notice) {
		this.notice = notice;
	}
	
	public BeanEnterpriseZoneDecorateContent getNavigate() {
		return navigate;
	}
	
	public void setNavigate(BeanEnterpriseZoneDecorateContent navigate) {
		this.navigate = navigate;
	}
	
	public String getModulesLayout() {
		return modulesLayout;
	}
	
	public void setModulesLayout(String modulesLayout) {
		this.modulesLayout = modulesLayout;
	}
	
	public BeanEnterpriseZoneDecorateContent getStoreLogo() {
		return storeLogo;
	}
	
	public void setStoreLogo(BeanEnterpriseZoneDecorateContent storeLogo) {
		this.storeLogo = storeLogo;
	}
}